
<div class="wrapper-md ng-scope">
<div class="row" novalidate>

  <!--表结构 -->
  <div class="col-md-12">
    <div class="panel panel-default">


    <ul id="myTab" class="nav nav-tabs"><!-- href="#createuser1" -->
    <!-- <li class="active" >用户列表</li> -->
    <!--  <li ng-show="sh" class="active" ><a id="asdf"  href="#createuser1"  data-toggle="tab">用户列表</a></li>
     <li ng-show="sh1" class="active" ><a id="asdf"  href="#createuser1"  data-toggle="tab">用户列表</a></li> -->
     <li  class="active" ><a id="asdf"  href="#createuser1"  data-toggle="tab">用户列表</a></li>
     <li ><a href="#createuser" data-toggle="tab">用户创建</a></li>
  <!--  <li ><a href="#home" data-toggle="tab">
      用户列表2</a>
   </li> -->
  <!--  <li ng-show="ns"><a href="#createuser" data-toggle="tab">用户创建</a></li>
    <li ng-show="ns1"><a href="#createuser" data-toggle="tab">用户创建</a></li>
    -->
    <!-- <li><a href="#changepass" data-toggle="tab">修改密码</a></li> -->
</ul>
<div id="myTabContent" class="tab-content">

  <div class="tab-pane fade in active" id="createuser1">
           
           <div class="panel-body">
                <div class="row">
                        <div class="col-sm-1">

                        </div>
                        <div class="col-sm-10">
                    
                                <table class="table table-hover table-bordered">
                                    <thead>
                                      <tr>
                                        <th class="col-md-1 text-center" style="vertical-align:middle">序号</th>
                                        <th class="col-md-3 text-center" style="vertical-align:middle">单位编号</th>
                                        <th class="col-md-4 text-center" style="vertical-align:middle">单位名称</th>
                                        <th class="col-md-2 text-center" style="vertical-align:middle">登录账号</th>
                                        <th class="col-md-2 text-center" style="vertical-align:middle">操作</th>
                                      </tr>
                                    </thead>
                                    <tbody>
                                      <tr ng-repeat="obj in objs">
                                        <td class="text-center" style="text-align:center;vertical-align:middle">{{$index+1}}</td>
                                        <td class="text-center" style="text-align:center;vertical-align:middle">{{obj.id}}</td>
                                        <td class="text-center" style="text-align:center;vertical-align:middle">{{obj.name}}</td>
                                        <td class="text-center" style="text-align:center;vertical-align:middle">{{obj.code}}</td>
                                        <td class="text-center" style="text-align:center;vertical-align:middle">
                                          <a ng-click="updateinformation(obj)" class="btn btn-primary btn-xs"   ng-show="obj.flag"
                                          >角色分配</a>
                                           <a ng-click="information(obj)" class="btn btn-info btn-xs"
                                          >查看详情</a>
                                            <a ng-click="updateinfor(obj)" class="btn btn-success btn-xs"
                                          >信息修改</a>                                            
                                          <!-- <a ng-click="createuserlist(obj)" class="btn btn-success btn-xs"
                                          >下属用户</a> -->
                                        </td>
                                      </tr>
                                    </tbody>
                              </table>
                              <div class="text-right" style="background-color: white">
                                                <pagination 
                                                    total-items="totalItems" 
                                                    ng-model="currentPage" 
                                                    ng-change="pageChanged(currentPage)"
                                                    previous-text="上一页"
                                                    next-text="下一页"
                                                    first-text="首页"
                                                    last-text="尾页"
                                                    max-size="3"
                                                    boundary-links="true"
                                                    rotate="false"
                                                    items-per-page="itemsPerPage"
                                                    class="m-t-none m-b"></pagination>

                                                </div> 
                        </div>
                        <div class="col-sm-1"></div>
                   </div>
              </div>
       </div>
    <div class="tab-pane fade" id="createuser">
      <div class="panel-body">
            <form name="form1" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
             
              <div class="form-group">
                <label class="col-lg-3 control-label">单位名称:</label>
                <div class="col-lg-5">
                  <input type="text" class="form-control" placeholder="必填,用户创建后单位名称不能修改,请核准后填写" ng-change="mychange()" ng-model="obj.name" required="">
                </div>
               <!--  <label class="col-lg-3 control-label"   ng-show="biaoshi" style="text-align: left;color:red">请填写单位名称</label>    --> 
              </div>
               
              <div class="form-group">
                <label class="col-lg-3 control-label">所在区县:</label>
                <div class="col-lg-5">
                  <!--<input type="text" class="form-control" placeholder="必填" ng-model="obj.place" required="">-->
                  <select ng-model="obj.place" class="form-control" >
                    <option value="">请选择</option>
                    <option value="0">和平区</option>
                    <option value="1">沈河区</option>
                    <option value="2">皇姑区</option>
                    <option value="3">铁西区</option>
                    <option value="4">大东区</option>
                    <option value="5">东陵区</option>
                    <option value="6">于洪区</option>
                    <option value="7">苏家屯区</option>
                    <option value="8">沈北新区</option>
                    <option value="9">浑南新区</option>
                    <option value="10">辽中区</option>
                    <option value="11">康平县</option>
                    <option value="12">法库县</option>
                    <option value="13">新民市</option>  
                  </select>
                </div>
              </div>
               <div class="form-group">
                <label class="col-lg-3 control-label">登录账号:</label>
                <div class="col-lg-5">
                  <input type="text" class="form-control" placeholder="创建用户后自动生成"  required="" disabled="true">
                </div>
              </div>
                <div class="form-group">
                <label class="col-lg-3 control-label">初始登录密码:</label>
                <div class="col-lg-5">
                  <input type="text" class="form-control" placeholder="000000"  required="" disabled="true">
                </div>
              </div>
               <div class="form-group">
                <label class="col-lg-3 control-label">用户类别:</label>
                <div class="col-lg-5">
                  <select ng-model="obj.type" class="form-control" >
                    <option value="">请选择</option>
                    <option value="1">景区</option>
                    <option value="2">酒店</option>
                    <option value="3">市旅游委</option>
                    <option value="4">区县旅游局</option>  
                  </select>
                </div>
              </div>
           
            
              <!--<div class="form-group">
                <label class="col-lg-3 control-label" >主要负责人（法人）:</label>
                <div class="col-lg-5">
                  <input type="text" class="form-control" placeholder="必填" ng-model="obj.responsible_person" required="">
                </div>
              
              </div>
              <div class="form-group">
                <label class="col-lg-3 control-label">联系电话:</label>
                <div class="col-lg-5">
                  <input type="text" class="form-control" placeholder="必填" ng-model="obj.responsible_person_phone" required="">
                </div>
              </div>-->

            </form>


            <div class="col-lg-3"></div>
            <div class="col-lg-4">
              <button class="btn btn-primary btn-rounded" ng-click="addUser(obj)">添加</button>
              <button class="btn btn-default btn-rounded" ng-click="cancel()">
                    <!-- <a href="#createuser1" data-toggle="tab" ng-click="cancel()"> -->取消<!-- </a> -->
              </button>
            </div>
             
          </div>

     </div>
     

        <div class="tab-pane fade" id="changepass">

                  <div class=" col-md-6  col-md-offset-3 mt10">
                  <div class="panel panel-success">
                    <div class="panel-heading  ">修改密码</div>

                    <div class="panel-body">
                      <form class="form-horizontal">

                        <div class="form-group mt10 input-lg">
                          <div class="col-sm-3 control-label">旧密码</div>
                          <div class="col-sm-9">
                            <input type="password" class="form-control" ng-model="pass.oldPassword" placeholder="输入旧密码">
                          </div>
                        </div>

                        <div class="form-group mt10 input-lg">
                          <div class="col-sm-3 control-label">新密码</div>
                          <div class="col-sm-9">
                            <input type="password" class="form-control" ng-model="pass.newPassword" placeholder="输入新密码">
                          </div>
                        </div>

                        <div class="form-group mt10 input-lg" >
                          <div class="col-sm-3 control-label">确认新密码</div>
                          <div class="col-sm-9">
                            <input type="password" class="form-control" ng-model="pass.newPassword2" placeholder="确认新密码">
                          </div>
                        </div>

                        <div class="form-group input-lg">

                          <div class="col-sm-12">
                            <button type="button" 
                            class="btn btn-success btn-block"
                            ng-click="gogo()">确定</button>
                          </div>
                        </div>

                        <div class="alert alert-warning" role="alert">初始密码'000000'</div>
                        
                      </form>
                    </div>
                  </div>
                  </div>


      </div>
   </div>
     

    </div>
  </div>
</div>
</div>


